package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.yy.Attractions;

import java.util.List;

@Mapper
public interface AttractionsMapper extends BaseMapper<Attractions> {

    //根据传入城市Id查询八个景点
    List<Attractions> selectAttractionsByCityId(int cityId);

    //根据地点、主题及星级分页查询景点
    List<Attractions> selectAttractionsByPage(@Param("uid") Integer uid, @Param("address") String address,@Param("topic") String topic,@Param("star") String star,@Param("attName") String attName);

    //根据景点id查询景点信息
    Attractions selectAttractionsById(@Param("attId") Integer attId);

    //根据景点id修改浏览量
    Integer updateViewsById(@Param("attId") Integer attId);
}
